set term x11 persist
# uncomment the next line to output as png image
#set terminal png

# save file to "metrics.png"
set output "app-slash-happy-metrics.png"

# graph a title
set title "ab -n 200 -c 20 for /app vs / (static) vs /app/happy/ (db access)"

# nicer aspect ratio for image size
   set size 1,0.7

# y-axis grid
   set grid y

# x-axis label
   set xlabel "request"

# y-axis label
   set ylabel "response time (ms)"

# plot data from "app-metrics.plot" and "slash-metrics.plot" and "happy-metrics.plot" using column 9 with smooth sbezier lines
   plot "app-metrics.plot" using 9 smooth sbezier with lines title "app (processing):", "slash-metrics.plot" using 9 smooth sbezier with lines title "/ (static):", "happy-metrics.plot" using 9 smooth sbezier with lines title "/happy (sql):"